import { DEMO } from '../reduxConstants'
const INITIAL_STATE = {
  num: 0
}
export default function counter (state = INITIAL_STATE, action) {
  switch (action.type) {
    case DEMO:
      return {
        ...state,
        num: state.num + 1
      }

    default:
      return state
  }
}